package com.example.demo.log.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class DemoService {
    private static final Logger logger = LoggerFactory.getLogger(DemoService.class);

    public void logTest() {
        logger.debug("Debug message (仅出现在 service.log)"); // DEBUG 级别
        logger.info("Info message (不会出现在根 Logger 的输出中)");
    }
}